#pragma once
#include <mysql.h>

void validate_init(MYSQL* mysql, int* pfd);
bool validate_url(MYSQL* mysql, int fd, uint32_t ip, char* url, int* ptype, int* preason);
void validate_clean(MYSQL* mysql, int fd);

